<#include "../head.ftl">
<div class="page_title">客户开发计划 &gt; 执行计划</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="alert('开发失败，已归档。');to('${base}/refer/fail?referid=${refer.id}')">终止开发</button>
    <button class="common_button" onclick="back();">返回</button>
    <button class="common_button" onclick="to('${base}/plan/list?referid=${refer.id}');">制定计划</button>
    <button class="common_button" onclick="alert('开发成功');to('${base}/refer/success?referid=${refer.id}')">开发成功</button>

</div>
<#include "content.ftl">
<table class="data_list_table" id="table1">
    <tr>
        <th>日期</th>
        <th>计划</th>
        <th>执行效果</th>
    </tr>
    <#list planList as plan>
        <form action="${base}/plan/save" method="post">
            <input type="hidden" name="id" value="${plan.id}"/>
            <input type="hidden" name="refer.id" value="${plan.refer.id}"/>
            <input type="hidden" name="createtime" value="${plan.createtime?string("yyyy-MM-dd")}"/>
            <input type="hidden" name="content" value="${plan.content}"/>
        <tr>
            <td class="list_data_text">${plan.createtime?string("yyyy年MM月dd日")}</td>
            <td class="list_data_ltext">${plan.content}</td>
            <td class="list_data_ltext">
                <input type="text" name="result" value="${plan.result!''}"/>　
                <button class="common_button" onclick="document.forms[0].submit();">保存</button>
            </td>
        </tr>
        </form>
    </#list>


</table>
</body>
</html>